﻿<!DOCTYPE html>
<html lang="zh_CN">
	<head>
		<meta charset="UTF-8">
		<title>作业助手</title>
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
    	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
		<link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css">
		<script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
		<script src="http://cdn.bootcss.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
		<style type="text/css">
			* {margin: 0;padding: 0;}
			body{font:14px/1.6 "Helvetica Neue","Hiragino Sans GB","Microsoft YaHei","\9ED1\4F53",Arial,sans-serif;word-wrap:break-word;word-break:normal;}
			a {text-decoration: none;}
			img {max-width: 100%;height: auto;}
			div{text-align: center;}
			img{margin:0 auto;}
			.bs-docs-footer{font-size:12px;padding-top:20px;padding-bottom:5px;margin-top:50px;color:#767676;text-align:center;border-top:1px solid #e5e5e5}
        	.text{font-size: 1.2em;margin: 30px auto;text-align: center;}
			.weixin-tip {display: none;position: fixed;left: 0;top: 0;bottom: 0;background: rgba(0, 0, 0, 0.8);filter: alpha(opacity=80);height: 100%;width: 100%;z-index: 100;}
			.weixin-tip p {text-align: center;margin-top: 2%;padding: 0 5%;}
		</style>
	</head>

	<body>
		<div class="container">
		<div class="row">
			<div class="col-xs-12 col-sm-12">
			</div>
			<h2>《农机信息》</h2>
			<hr>
			<div class="col-xs-12 col-sm-12">
				<h3>编号:${machineNumber!}</h3>
				<h3>车牌:${licensePlateNumber!}</h3>
				<h3>品牌:${brand!"未知"}</h3>
				<h3>型号:${modelNumber!"未知"}</h3>
				<h3>基地:${farmName!"未知"}</h3>
				<h3>公司:${companyName!"未知"}</h3>
			</div>
			<div class="col-xs-12 col-sm-12">
				<hr>
				<button type="button" class="btn btn-primary btn-lg btn-block" onclick="downApp()">下载APP(安卓)</button>
			</div>
			<div class="col-xs-12 col-sm-12">
				<hr>
				<p class="text-muted">版权所有:中国农业大学</p>
			</div>
		</div>
	</div>
		<div class="weixin-tip">
			<p>
				<img src="/machine/live_weixin.png" alt="微信打开" />
			</p>
		</div>
		<script type="text/javascript">
            var isWeixin = true;
            function downApp() {
                var winHeight = $(window).height();
                /**判断微信终端 0*/
                var ua = navigator.userAgent.toLowerCase();
                if(ua.match(/MicroMessenger/i) == "micromessenger") {
                    isWeixin =  true;
                } else {
                    isWeixin =  false;
                }
                /**判断微信终端 1*/
                if(isWeixin) {
                    $(".weixin-tip").css("height", winHeight);
                    $(".weixin-tip").show();
                } else {
                    window.open("${downLoadUrl!}","_blank");
                }
            };
		</script>
	</body>

</html>